package com.region.loadbalancer.monitor.event;

import com.region.loadbalancer.group.GroupServer;

/**
 * Automatic event detection
 *
 * @author liujieyu
 * @date 2023/5/26 23:50
 * @desciption
 */
public class AutoDetectEvent extends AbstractEvent {

    public AutoDetectEvent(GroupServer groupServer) {
        super(groupServer);
    }

    @Override
    public EventState state() {
        return EventState.SCHEDULE_CYCLE;
    }

    @Override
    public void event(GroupServer groupServer) {
        groupServer.getManager().fullDetectServer(groupServer);
    }
}
